<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title>编辑个人资料_<?=$this->config->item('site_name');?></title>

	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/usercenter.css')?>" rel="stylesheet" type="text/css" media="screen">
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<div class="user_main clearfix">
	<div class="user_inner_tab">
		<a href="<?=site_url('u/'.$this->user_login->get_user_id())?>" class="user_backbtn1" title="返回我的空间" alt="返回我的空间"></a>
		<ul class="user_inner_tab_ul">
			<li><a href="<?=site_url('user/profile')?>" class="current link">编辑个人资料</a></li>
			<li><a href="<?=site_url('user/portrait')?>" class="link">设置头像</a></li>
			<li><a href="<?=site_url('user/change_password')?>" class="link">修改密码</a></li>
		</ul>
	</div>
	<div class="sixin_list">
		<div class="sixin_list_w">
			<div class="useredit_w">
				<form method="post" action="<?=site_url('user/profile')?>">
				<input type="hidden" value="modi" name="action">
				<ul class="useredit_ul clearfix">
					<li>
						<dl class="clearfix">
							<dt>邮箱：</dt>
							<dd class="dd1"><span><?=$email?></span></dd>
							<dd class="dd2"><?php if ($message):?><?=$message?><?php endif;?></dd>
						</dl>
					</li>
					<li>
						<dl class="clearfix"><dt>昵称：</dt>
							<dd class="dd1"><input type="text" class="text" name="username" id="username" value="<?=$username?>" autocomplete="off"></dd>
							<dd class="dd2"></dd>
						</dl>
					</li>
					<li>
						<dl class="clearfix"><dt>性别：</dt>
							<dd class="dd1"><select name="sex" id="sex">
							<option value="0">其他</option>
							<option value="2">女</option>
							<option value="1">男</option>
							</select></dd>
							<dd class="dd2"></dd>
						</dl>
					</li>
					<li>
						<dl class="clearfix">
							<dt>生日：</dt>
							<dd class="dd1">
								<select name="birthyear" errtips="">
			                        <?php $yearlist = range(1911,2010);?>
			                        <?php foreach ($yearlist as $year):?>
			                        <option value="<?=$year?>" <?php if ($birthday[0] == $year) { echo 'selected'; }?> ><?=$year?></option>
			                        <?php endforeach?>
			                    </select> 年
			                    <select name="birthmonth" errtips="">
			                        <?php $monthlist = range(1,12);?>
			                        <?php foreach ($monthlist as $month):?>
			                        <option value="<?=$month?>" <?php if ($birthday[1] == $month) { echo 'selected'; }?> ><?=$month?></option>
			                        <?php endforeach?>
			                    </select> 月
			                    <select name="birthday" errtips="">
			                        <?php $dayhlist = range(1,31);?>
			                        <?php foreach ($dayhlist as $day):?>
			                        <option  value="<?=$day?>" <?php if ($birthday[2] == $day) { echo 'selected'; }?> ><?=$day?></option>
			                        <?php endforeach?>
			                    </select>日
			                </dd>
			                <dd class="dd2"></dd>
			            </dl>
			        </li>
					<li>
						<dl class="clearfix">
							<dt>生日：</dt>
							<dd class="dd1">
								<select name="taste" id="taste">
									<option value="">请选择</option>
					            	<option value="酸" <?php if ('酸' == $flavor){ echo 'selected'; }?> >酸</option>
						            <option value="甜" <?php if ('甜' == $flavor){ echo 'selected'; }?> >甜</option>
						            <option value="苦" <?php if ('苦' == $flavor){ echo 'selected'; }?> >苦</option>
						            <option value="辣" <?php if ('辣' == $flavor){ echo 'selected'; }?> >辣</option>
						            <option value="咸" <?php if ('咸' == $flavor){ echo 'selected'; }?> >咸</option>
						            <option value="麻辣" <?php if ('麻辣' == $flavor){ echo 'selected'; }?> >麻辣</option>
						            <option value="酸甜" <?php if ('酸甜' == $flavor){ echo 'selected'; }?> >酸甜</option>
						            <option value="咸苦" <?php if ('咸苦' == $flavor){ echo 'selected'; }?> >咸苦</option>
						            <option value="酸苦" <?php if ('酸苦' == $flavor){ echo 'selected'; }?> >酸苦</option>
						            <option value="微辣" <?php if ('微辣' == $flavor){ echo 'selected'; }?> >微辣</option>
						            <option value="变态辣" <?php if ('变态辣' == $flavor){ echo 'selected'; }?> >变态辣</option>
						            <option value="超级咸" <?php if ('超级咸' == $flavor){ echo 'selected'; }?> >超级咸</option>
						            <option value="腻人甜" <?php if ('腻人甜' == $flavor){ echo 'selected'; }?> >腻人甜</option>
						            <option value="无敌酸" <?php if ('无敌酸' == $flavor){ echo 'selected'; }?> >无敌酸</option>
						            <option value="清淡" <?php if ('清淡' == $flavor){ echo 'selected'; }?> >清淡</option>
						            <option value="通吃" <?php if ('通吃' == $flavor){ echo 'selected'; }?> >通吃</option>
						            <option value="重口味" <?php if ('重口味' == $flavor){ echo 'selected'; }?> >重口味</option>
					            </select>
			                </dd>
			                <dd class="dd2"></dd>
			            </dl>
			        </li>
					<li>
						<dl class="clearfix">
							<dt>签名：</dt>
							<dd class="dd1" id="editsignname"><textarea name="signature" class="textare r3"><?=$skilled?></textarea></dd>
							<dd class="dd2"><span class="tip" style="color: rgb(153, 153, 153);">还能输入143字</span></dd>
						</dl>
					</li>
					<li>
						<dl class="clearfix">
							<dt></dt>
							<dd class="dd1">
								<input name="submits" value="ok" type="hidden">
								<button type="submit" class="btnlo fwb">保存</button>
							</dd>
							<dd class="dd2"></dd>
						</dl>
					</li>
				</ul>
			</form>
			</div>
		</div>
	</div>
</div>

<? $this->load->view('footer'); ?>